/**
 * Created by zhangb on 2015/10/10.
 */

    //window.onload  = function()
    //{
    //    var oDiv = document.getElementById('testdiv');
    //    console.log(oDiv);
    //}


    var oDiv = document.getElementById('testdiv');
    //console.log(oDiv);
    oDiv.innerHTML = "<p>This is innerHTML</p>";
    var oBody = document.getElementsByTagName('body');
    console.log(oBody);